package cn.blankchn.www;

import cn.blankchn.www.entity.Part;
import cn.blankchn.www.util.ReadCsvFactory;
import cn.blankchn.www.util.WriteCsvWithoutHandleFactory;

import java.io.IOException;
import java.util.List;

/**
 * Created by apple on 2018/4/2.
 */
public class MainTest {

    public static void main(String[] args) throws IOException {

        List<Part> list = ReadCsvFactory.handle("/Users/apple/Desktop/黄山路归来(1).csv",0);
        if(list!=null){
//            for(Part part : list){
//                System.out.println(part);
//                System.err.println(part.getList().size()+"");
//            }

//            List<HandleResult> list_result = HandleFactory.handle(list,0);
            for(Part part : list){
                WriteCsvWithoutHandleFactory.write(part, "/Users/apple/Desktop/listresult 2.csv",0);
            }
        }

    }

}
